package com.example.smartstart.service.impl;

import com.example.smartstart.entity.MapRecord;
import com.example.smartstart.entity.dto.MapRecordDTO;
import com.example.smartstart.mapper.MapRecordMapper;
import com.example.smartstart.service.IMapRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author dlx
 * @since 2024-07-22
 */
@Service
public class MapRecordServiceImpl extends ServiceImpl<MapRecordMapper, MapRecord> implements IMapRecordService {

    @Autowired
    private MapRecordMapper mapRecordMapper;

    @Override
    public Integer queryTotal(MapRecordDTO mapRecordDTO) {
        return mapRecordMapper.queryTotal(mapRecordDTO);
    }

    @Override
    public List<MapRecordDTO> listByPage(MapRecordDTO mapRecordDTO) {
        return mapRecordMapper.listByPage(mapRecordDTO);
    }

    @Override
    public List<MapRecordDTO> getAllRecord(MapRecordDTO mapRecordDTO) {
        return mapRecordMapper.getAllRecord(mapRecordDTO);
    }

    @Override
    public List<MapRecordDTO> getAllRecordUserCount(MapRecordDTO mapRecordDTO) {
        return mapRecordMapper.getAllRecordUserCount(mapRecordDTO);
    }
}